package io.bba.boot.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 采集数据
 *
 * @author zs
 * @since 2024-03-19
 */
@Data
@TableName("crawler_data")
@Schema(description = "采集数据")
public class CrawlerData implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "网页地址")
    private String url;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "图片地址")
    private String imgUrl;

    @Schema(description = "文章内容（html）")
    private String articleContent;

    @Schema(description = "文章地址详情")
    private String urlDetail;

    @Schema(description = "采集日期")
    private Date crawlerDate;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}

